package wisp.dataObjects;
import java.util.Calendar;
import java.text.SimpleDateFormat;

/*
 *	Retrieved from http://64.18.163.122/rgagnon/javadetails/java-0106.html
 *	originally named as DateUtils.java
 *
 **/
 
public class CurrentDT 
{
  public static final String DATE_FORMAT_NOW = "yyyy/MM/dd HH:mm:ss";

  public static String now() 
  {
    Calendar cal = Calendar.getInstance();
    SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);
    return sdf.format(cal.getTime());

  }

  /*public static void  main(String arg[]) 
  {
    System.out.println("Now : " + CurrentDT.now());
  }*/
}